package com.coffee.admin.api.platform.service;

import com.coffee.admin.api.platform.query.PlatformRoleQuery;
import com.coffee.admin.api.platform.req.PlatformRoleReq;
import com.coffee.admin.api.platform.result.PlatformRoleResult;
import com.coffee.core.entity.Page;
import com.coffee.core.entity.PagerInfo;
import com.coffee.core.exception.BusinessException;

import java.util.List;
import java.util.Map;
import java.util.Set;


public interface PlatformRoleService {

	Page<PlatformRoleResult> getPager(PlatformRoleQuery param, PagerInfo pr);
	
	Integer count(PlatformRoleQuery param);
	
	PlatformRoleResult getDetail(Integer id);
	
	List<PlatformRoleResult> getList(PlatformRoleQuery param, PagerInfo pr);
	
	List<PlatformRoleResult> getList(PlatformRoleQuery param);
	
	List<PlatformRoleResult> getList();

	void delete(Integer id) throws BusinessException;

	void addOrUpdate(PlatformRoleReq result)throws BusinessException;
	
	Map<Integer,PlatformRoleResult> getItemMap(Set<Integer> idSet);
	
	Map<Integer,PlatformRoleResult> getItemMap();
	
}